package com.example.demo.service;


import com.example.demo.model.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.dao.NewsDao;

import java.util.List;

/**
 * Created by admin on 2017/10/8.
 */
@Service
public class NewsService {
    @Autowired
    private NewsDao newsDao;

    public List<News> getLatestNews(int offset,int limit){
        return newsDao.selectOffset(offset,limit);
    }



}
